package main

import (
	"fmt"
	"context"

	"github.com/Nerzal/gocloak/v8"
)


func main() {
	client := gocloak.NewClient("http://127.0.0.1:7600")
	ctx := context.Background()
	token, err := client.LoginAdmin(ctx, "admin", "admin", "master")
	if err != nil {
		panic("Something wrong with the credentials or url")
	}
	group := gocloak.Group{
		Name: gocloak.StringP("fkxxyz"),
	}
	client.CreateGroup(ctx, token.AccessToken, "master", group)
	fmt.Println(token.AccessToken)
	fmt.Println("hello fkxxyz")
}


